package com.xc.freeapp.service;

import java.util.List;
import java.util.Map;

import com.xc.freeapp.entity.Businessfloor;
import com.xc.freeapp.entity.Department;
import com.xc.freeapp.entity.Departments;
import com.xc.freeapp.entity.Hospital;

public interface HospitalService {
	
	public int deleteByPrimaryKey(Integer id);

    public int insert(Hospital record);


    public  Hospital selectByPrimaryKey(Integer id);

    public Integer selectappstatus(Integer appid);

    public int updateByPrimaryKey(Hospital record);
    
    /**
	 * 根据医院id和科室类型获取科室列表
	 * @param paramsmap {"businessId","querytype"}
	 */
    public List<Department> getDeparmentList(Map<String, Object> paramsmap);
    
    /**
	 * 根据医院id和大楼编码获取医院大楼楼层信息列表
	 * @param paramsmap {"businessId","code"} 
	 * */
    public List<Businessfloor> getFloorList(Map<String,Object> paramsmap);
    
    public List<Departments> getDeparmentsTreeList(Map<String, Object> paramsmap);
    
    public List<Department> getAllDeparment(Integer businessId);
    
}
